import request from '@/utils/request'

// 查询周统计数据
export function weekStatistics(query) {
  return request({
    url: '/user/statistic/category/week',
    method: 'get',
    params: query
  })
}

// 查询月统计数据
export function monthStatistics(query) {
  return request({
    url: '/user/statistic/bar/month',
    method: 'get',
    params: query
  })
}

// 查询年统计数据
export function yearStatistics(query) {
  return request({
    url: '/user/statistic/bar/year',
    method: 'get',
    params: query
  })
};

// 查询状态统计数据
export function statusStatistics(query) {
  return request({
    url: '/user/statistic/round/status',
    method: 'get',
    params: query
  })
}

